package com.gitee.minimalismstyle.fresh.flowable.api.feign.fallback

import com.gitee.minimalismstyle.fresh.common.core.domain.R
import com.gitee.minimalismstyle.fresh.flowable.api.feign.BatchesApi
import com.gitee.minimalismstyle.fresh.flowable.api.feign.model.BatchResponse
import com.gitee.minimalismstyle.fresh.flowable.api.feign.model.DataResponse

class BatchesApiFallback : BatchesApi {
    override fun getBatchPartDocument(batchPartId: String): R<Any> {
        return R.error("服务无法访问")
    }

    override fun listBatches(id: String?, batchType: String?, searchKey: String?, searchKey2: String?, createTimeBefore: String?, createTimeAfter: String?, completeTimeBefore: String?, completeTimeAfter: String?, status: String?, tenantId: String?, tenantIdLike: String?, withoutTenantId: Boolean?): R<DataResponse<BatchResponse>> {
        return R.error("服务无法访问")
    }

    override fun getBatch(batchId: String): R<BatchResponse> {
        return R.error("服务无法访问")
    }

    override fun deleteBatch(batchId: String): R<Any> {
        return R.error("服务无法访问")
    }

    override fun getBatchDocument(batchId: String): R<Any> {
        return R.error("服务无法访问")
    }

    override fun listBatchesPart(batchId: String, status: String?): R<Any> {
        return R.error("服务无法访问")
    }
}